package com.koron.plan.web.patrolplan.bean.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.query.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author twcao
 * @title: PatrolPointQuery
 * @projectName GDH_EAM_V2
 * @description: 巡视点列表查询条件
 * @date 2021/10/279:21
 */
@Data
@ApiModel("巡视点列表查询条件")
public class PatrolPointQuery extends PageQuery {

    @ApiModelProperty("主键")
    private String id;

    @ApiModelProperty("巡视点id")
    private String locationId;

    @ApiModelProperty("巡视点名称")
    private String locationName;

    @ApiModelProperty("巡视点编码")
    private String code;

    @ApiModelProperty("巡视点名称")
    private String name;

    @ApiModelProperty("所属单位")
    private String pointDeptId;

    @ApiModelProperty("所属单位名称")
    private String pointDeptName;

    @ApiModelProperty("巡视点类型")
    private String patrolPointType;

    @ApiModelProperty("创建人,账号")
    private String createBy;

    @ApiModelProperty("创建人名称")
    private String createByName;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private List<Date> createTime;

    @ApiModelProperty("主表需要部门字段，用于数据权限")
    private String deptId;

    @ApiModelProperty("部门名称")
    private String deptName;

    @ApiModelProperty("删除标志")
    private Boolean deleteFlag = false;

    @ApiModelProperty("关键字")
    private String keyWord;

}
